package com.cwj.virtualapi.controller;

import com.cwj.virtualapi.vo.VacationDayOptions;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/formData")
public class FormDataController {

    @CrossOrigin
    @GetMapping
    public List<Integer> getFormData() {
        return new VacationDayOptions(5).getDays();
    }
}
